package by.amakarevich.services;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import by.amakarevich.datamodel.Product;
import by.amakarevich.datamodel.Tambour;

public interface TambourService {
	
	@Transactional
	void createNewTambour(Tambour tambour, Product product);
	
	@Transactional
	Tambour get(Long id);
	
	@Transactional
	void updateTambour(Tambour tambour);
	
	@Transactional
	void removeTambour(Long id);
	
	@Transactional
    void deleteAll();
	
	List <Tambour> getAllTambour();
	
	Tambour getByProductId(Product product);
}
